package cn.neusoft.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author hxj
 * @since 2024-12-25
 */
public class Cost implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联的挂号id
     */
    private Integer registerId;

    /**
     * 项目名称
     */
    private String costname;

    /**
     * 类型(检查、检验、处置、药品)
     */
    private String costtype;

    /**
     * 价格
     */
    private BigDecimal costprice;

    /**
     * 数量
     */
    private Integer number;

    /**
     * 创建时间
     */
    private LocalDateTime createtime;

    /**
     * 状态(0 未支付 1 已支付)
     */
    private Integer state;

    /**
     * 支付方式(现金、医保卡、银联卡、微信、支付宝)
     */
    private String payMethod;

    /**
     * 结算方式
     */
    private Integer settleCategoryId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getRegisterId() {
        return registerId;
    }

    public void setRegisterId(Integer registerId) {
        this.registerId = registerId;
    }
    public String getCostname() {
        return costname;
    }

    public void setCostname(String costname) {
        this.costname = costname;
    }
    public String getCosttype() {
        return costtype;
    }

    public void setCosttype(String costtype) {
        this.costtype = costtype;
    }
    public BigDecimal getCostprice() {
        return costprice;
    }

    public void setCostprice(BigDecimal costprice) {
        this.costprice = costprice;
    }
    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
    public LocalDateTime getCreatetime() {
        return createtime;
    }

    public void setCreatetime(LocalDateTime createtime) {
        this.createtime = createtime;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public String getPayMethod() {
        return payMethod;
    }

    public void setPayMethod(String payMethod) {
        this.payMethod = payMethod;
    }
    public Integer getSettleCategoryId() {
        return settleCategoryId;
    }

    public void setSettleCategoryId(Integer settleCategoryId) {
        this.settleCategoryId = settleCategoryId;
    }

    @Override
    public String toString() {
        return "Cost{" +
            "id=" + id +
            ", registerId=" + registerId +
            ", costname=" + costname +
            ", costtype=" + costtype +
            ", costprice=" + costprice +
            ", number=" + number +
            ", createtime=" + createtime +
            ", state=" + state +
            ", payMethod=" + payMethod +
            ", settleCategoryId=" + settleCategoryId +
        "}";
    }
}
